import Users from './components/Users';
import { connect } from 'dva';


function mapStateToProps(state) {
  const {list, total, page } = state.users;

  // console.log({list, total, page })
  return{
    list,
    total,
    page,
    loading: state.loading.models.users,
  };
}

export default connect(mapStateToProps)(Users);

